<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"   
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:ace="http://www.icefaces.org/icefaces/components"
      xmlns:f="http://java.sun.com/jsf/core"
   xmlns:icecore="http://www.icefaces.org/icefaces/core">
   <h:body> 
      <ui:composition template="WEB-INF/templates/template.xhtml">	x
         <ui:define  name="content">
	         <h:form id="form-login">   
	            <ace:panel header    = "#{msgs['login.text.descripcion']}"
	                       closable  = "false"
	                       toggleable= "false"
	                       collapsed = "false" >
	             <h:panelGrid      columns="2"  style="margin-left:auto; margin-right:auto;">
	                 <h:outputText   value="#{msgs['login.text.user']}"/>
	                 <h:inputText    value="#{loginBean.username}" /> 
	                 <h:outputText   value="#{msgs['login.text.password']}"/>
	                 <h:inputSecret  value="#{loginBean.password}" /> 
	                 <h:commandButton   id="logInBttn" value="#{msgs['login.button.login']}" 
	                                    actionListener="#{loginBean.logIn}" action="#{loginBean.enter}"/>
	                 <h:messages errorStyle="color: red;" />
	             </h:panelGrid>
	          </ace:panel>
	        </h:form>
         </ui:define>				
      </ui:composition> 
   </h:body> 
</html>	